package sealte.hvpms.dao;

import java.util.List;

import sealte.hvpms.pojo.UserCreate;

public interface UserDAO {
	
	public String login(String name,String password);
	
	public boolean register(UserCreate uc);
	
	public int getID(String name,String password);
	
	public int getAllRecorders(String kw);
	
	public List<UserCreate> listAll(int currentPage,int lineSize,String kw);
	
	public boolean deleteByID(int id);
	
	public boolean batchDeleteByID(int[] uc_ids);
	
	public boolean verifyName(String name);
	
	public boolean isGPQuesRight(String name,int gpQues);
	
	public boolean isGPAnswRight(String name,int gpQues,String gpAnsw);
	
	public boolean resetPassword(String name);
	
	public boolean unregister(int id);
	
	public boolean validatePassword(int id,String op);
	
	public boolean modifyPassword(int id,String np);
	
	public String getEmailByID(int id);
	
	public boolean resetEmail(int id,String email);
	
}
